import Vue from 'vue'
Vue.directive('auth',{
    async bind(el){
        //获取当前用户的信息
        const {data:{auth}}=await Vue.prototype.$api.users.getUserInfo()
        if(auth==0){
          el.setAttribute("disabled","disabled")
        }
       
    }
})